package com.eascs.p2p.admin.service.impl;

import java.util.List;

import javax.inject.Inject;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.p2p.admin.manager.IInvestorIncomeDetailManager;
import com.eascs.p2p.common.service.InvestorIncomeDetailService;
import com.eascs.p2p.common.vo.ModelResult;
import com.eascs.p2p.common.vo.RepaymentVO;

@Service
public class InvestorIncomeDetailServiceImpl implements InvestorIncomeDetailService {
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	@Inject
	IInvestorIncomeDetailManager investorIncomeDetailManager;
	@Override
	public ModelResult<List<RepaymentVO>> getInvestorIncome(String bid_id, int num) {
		
		ModelResult<List<RepaymentVO>> result = new ModelResult<List<RepaymentVO>>();
		try {
			result.setModel(investorIncomeDetailManager.getInvestorIncome(bid_id,num));
		} catch (Exception e) {
			e.printStackTrace();
			result.withError("根据标的id，期数查询投资用户收益明细：", e.getMessage());
		}
		return result;
	}



	
}
